import java.util.HashMap;
import java.util.LinkedList;


public class Intp extends Expr {
	private Expr e;
	
	public Intp(Expr e) {
		this.e = e;
	}

    public Element eval(HashMap<String, Element> nametable, HashMap<String, Proc> functiontable, LinkedList var) {
    	Element element = e.eval(nametable, functiontable, var);
    	
    	return new Element(element.isInt() ? 1 : 0);
    }
}
